package org.yu.register;

import net.minecraft.core.Registry;
import net.minecraftforge.eventbus.api.EventPriority;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent;
import org.yu.Yu;
import org.yu.register.world.ChaosBiomeSource;

@Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD,modid = Yu.MODID)
public class WorldRegister {
    @SubscribeEvent(priority = EventPriority.LOWEST)
    public static void onRegister(FMLCommonSetupEvent event){
        event.enqueueWork(()->{
            Registry.register(Registry.BIOME_SOURCE, "yu:chaos", ChaosBiomeSource.CODEC);
        });
    }
}
